#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""The unit test suites"""
__author__ = "Lei Chen <hide1713@gmail.com>"

from test_cog_file_reader import TestCogFileReader
from test_cog_model import TestCogModel
from test_file_reader import TestFileReader
from test_genome_config import TestGenomeConfig
from test_hitp_file_reader import TestHitpFileReader
import unittest
import sys

suite = unittest.TestSuite()
loader = unittest.defaultTestLoader
suite.addTests(loader.loadTestsFromTestCase(TestCogFileReader))
suite.addTests(loader.loadTestsFromTestCase(TestCogModel))
suite.addTests(loader.loadTestsFromTestCase(TestFileReader))
suite.addTests(loader.loadTestsFromTestCase(TestGenomeConfig))
suite.addTests(loader.loadTestsFromTestCase(TestHitpFileReader))

runner = unittest.TextTestRunner()
r = runner.run(suite)
if r.wasSuccessful():
    sys.exit(0)
else:
    sys.exit(-1)
